import math as m
a=int(input("请输入a:"))
b=int(input("请输入b:"))
c=int(input("请输入c:"))
print("您输入的函数为:"+str(a)+"x^2+"+str(b)+"x+"+str(c))
delta=b*b - 4*a*c
if delta<0:
  print("方程没有实根!")
elif delta==0:
  x=-b/2*a
  print("有唯一根,其值为:"+str(x))
else:
  x1=(-b+m.sqrt(delta))/(2*a)
  x2=(-b-m.sqrt(delta))/(2*a)
  print("有两个根,其值为:"+str(x1)+","+str(x2))
